What is Rozar Mvc
1551
24-Feb-2017
Updated on 18-Sep-2020
Jonas Stuart
24-Feb-2017Razor is a markup syntax not language, that gives the notification of using razor syntax for writing the server side code in the .cshtml file. Using it we can dynamically write the pages as per the requirement.
Page Architecture in a Web application-
1-Pure Page Achitectue i.e. .cs file Employee.cs
2-Mixed Page Architecture i.e .cshtml page that contains html as well as csharp code
Razor can be used to write down the server side dynamic code in the .cshtml / .vbhtml page as per the requirement of the project.
Dynamic-we get the data from table/controller supply as viewdata , viewbag and can dynamically load the list,
Using Razor-we can write the program i.e.
1-declaring variable
2-if else condition
3-switch case
4-looping statements
Etc.
Server-Wrb server i.e.IIS server, cassini ,web matrix server